package com.joekai.view_demo.message_drag;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.joekai.view_demo.BaseApplication;
import com.joekai.view_demo.R;

public class MessageDragActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_message_drag);
        TextView tv_1 = findViewById(R.id.tv_1);
        MessageDragView.attach(tv_1, view -> {
            Toast.makeText(BaseApplication.getInstance(), "再次显示", Toast.LENGTH_SHORT).show();
            tv_1.setVisibility(View.VISIBLE);
        });
    }
}